package com.zeei.ems.meet.service.impl;

import com.zeei.ems.meet.dao.PointPositionDao;
import com.zeei.ems.meet.model.PointPositionVO;
import com.zeei.ems.meet.model.vo.PointPositionParam;
import com.zeei.ems.meet.service.PointPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class PointPositionServiceImpl implements PointPositionService {
    @Autowired
    PointPositionDao pointPositionDao;

    @Override
    public List<PointPositionVO> listPointPosition(PointPositionParam pointPosition) {
        return pointPositionDao.listPointPosition(pointPosition);
    }

    @Override
    @Transactional
    public Boolean addPointPositionList(List<PointPositionVO> pointPositionList) {
        Integer integer = pointPositionDao.addPointPositionList(pointPositionList);
        return integer > 0 ? Boolean.TRUE : Boolean.FALSE;
    }
}
